package cn.hbu.zlfw.admin.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hbu.zlfw.admin.dao.UnitAdminDao;
import cn.hbu.zlfw.admin.entity.UnitAdmin;
import cn.hbu.zlfw.admin.service.UnitAdminService;
import cn.hbu.zlfw.common.base.service.impl.BaseServiceImpl;
import cn.hbu.zlfw.common.util.PageModel;

/**
 * 
 * @ClassName: UnitAdminServiceImpl 
 * @Description: 总管理员service接口实现
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月27日 下午10:29:53 
 * @vsersion:v1.0
 */
@Service("unitAdminService")
@Transactional
public class UnitAdminServiceImpl extends BaseServiceImpl<UnitAdmin, String> implements UnitAdminService{
	
	@Autowired
	private UnitAdminDao unitAdminDao;
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.admin.service.UnitAdminService#getUnitAdminByParam(java.util.Map)
	 */
	@Override
	public UnitAdmin getUnitAdminByParam(Map<String, Object> params) {
		return this.unitAdminDao.getUnitAdminByParam(params);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.admin.service.UnitAdminService#listUniAdminByParamsToRoot(cn.hbu.zlfw.common.util.PageModel, java.lang.String, java.lang.Integer)
	 */
	@Override
	public PageModel<UnitAdmin> listUniAdminByParamsToRoot(PageModel<UnitAdmin> pageModel, String userName,
			Integer schoolType) {
		return this.unitAdminDao.listUniAdminByParamsToRoot(pageModel,userName,schoolType);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.admin.service.UnitAdminService#getUnitAdminToUpdate(java.lang.String, java.lang.String)
	 */
	@Override
	public UnitAdmin getUnitAdminToUpdate(String phoneNumber, String id) {
		return this.unitAdminDao.getUnitAdminToUpdate(phoneNumber,id);
	}
	/*
	 * (non-Javadoc)
	 * @see cn.hbu.zlfw.admin.service.UnitAdminService#getUnitAdminByParams(java.lang.String)
	 */
	@Override
	public UnitAdmin getUnitAdminByParams(String phoneNumber) {
		return this.unitAdminDao.getUnitAdminByParams(phoneNumber);
	}

}
